package org.hellhouse.thehungryslingshot.model;

import android.graphics.Bitmap;

public class Slingshot {

	// attributes
	public int x;
	public int y;
	public int onTouchSize;
	public int pullStrength;
	public Bitmap image;
	public Bullet bullet;
	public Bitmap bulletImage;

	// constructor
	public Slingshot(int x, int y) {
		this.x = x;
		this.y = y;
	}

	// methods
	public void fire() {
		if (bullet != null) {
			bullet.setAcceleration(pullStrength);
		}
	}

	public void reload() {
		bullet = new Bullet(x, y, bulletImage);
	}

	public void modifyPullStrength() {

	}

	// methods: getters
	public int getX() {
		return y;
	}

	public int getY() {
		return y;
	}

	public int getOnTouchSize() {
		return onTouchSize;
	}

	public int getPullStrength() {
		return pullStrength;
	}

	public Bitmap getImage() {
		return image;
	}

	// methods: setters
	public void setX(int x) {
		this.x = x;
	}

	public void setY(int x) {
		this.x = x;
	}

	public void setOnTouchSize(int onTouchSize) {
		this.onTouchSize = onTouchSize;
	}

	public void setPullStrength(int pullStrength) {
		this.pullStrength = pullStrength;
	}

	public void setImage(Bitmap image) {
		this.image = image;
	}

}
